Skip to main content

SetLoadBalancerStatus

Description

call SetLoadBalancerStatus to set the state of the load balancing instance.

Request Method

POST

Request Path

/apsara/route/Slb/SetLoadBalancerStatus

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
access_key_idBODYstringNoacc-hp34s2h0xx1ht4nwo****access key ID.
regionIdBODYstringYesNo sample value for this parameter.region id
LoadBalancerIdBODYstringYeslb-bp1b6c719dfa08e****ID of the load balancing instance.
LoadBalancerStatusBODYstringYesactiveload balancing instance status. Value:active or inactive. active(default) When the status of the load balancing instance is active, the listener in the instance can forward the received traffic according to the rules. inactive when the status of the load balancing instance is inactive, the listener in the instance will no longer forward the received traffic. description when all listeners under an instance are deleted, the instance status is automatically changed to inactive.
versionBODYstringNo2016-01-01version of api
TagsBODYstringNo{"tagKey":"Key1","tagValue":"Value1"}tag key and value.

Return data

NameTypeSample valueDescription
RequestIdstringCEF72CEB-54B6-4AE8-B225-F876FF7BA984request ID.

Example

Successful Response example

{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}